Typescript HTTP driver #767
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Usage and product changes
Add a relatively slim typescript driver based on our HTTP API, adapted from code used for this purpose in
typedb-studio
.This driver is published to
npm
under the nametypedb-driver-http
through the same process as the oldnodejs
driver.Implementation
Used https://github.com/typedb/typedb-studio/tree/a3e422544b31175906c41bdb805b51c2c3ebaa60/src/framework/typedb-driver as a base.
Expanded it to cover all endpoints of the HTTP API as per https://typedb.com/docs/drivers/http/api-reference
Added release to
npm
based on the code used to release the oldnodejs
driver.Testing
Testing has been done manually thus far. More full tests will be added at a later date after higher priority work on documentation (specifically, adding an example app using this driver) is completed.